package com.caiyouxi.system.mapper;


import com.caiyouxi.system.model.SettingsBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/10/18.
 */
@Mapper
public interface SettingsMapper {
    //查询
    public SettingsBean select_setting(@Param("key") String key);
    public List<SettingsBean> get_setting_list(SettingsBean bean);

    List<SettingsBean> selectAll();


    //增加
    public int add_setting(SettingsBean bean);

    //修改
    public int update_setting(SettingsBean bean);

    //删除
    public int delete_setting(SettingsBean bean);

    //获得总条数
    public int get_count(SettingsBean bean);


}